package com.hongye.area.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zxy.common.utils.PageUtils;
import com.zxy.common.utils.Query;

import com.hongye.area.dao.SubwayStationDao;
import com.hongye.area.entity.SubwayStationEntity;
import com.hongye.area.service.SubwayStationService;


@Service("subwayStationService")
public class SubwayStationServiceImpl extends ServiceImpl<SubwayStationDao, SubwayStationEntity> implements SubwayStationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params, Long mid) {
        QueryWrapper<SubwayStationEntity> qw = new QueryWrapper<>();
        qw.eq("mid",mid);
        IPage<SubwayStationEntity> page = this.page(
                new Query<SubwayStationEntity>().getPage(params),
                qw
        );

        return new PageUtils(page);
    }

}